<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>React</title>
    <script src="../build/react.js"></script>
    <script src="../build/react-dom.js"></script>
    <script src="../build/browser.min.js"></script>
  </head>
  <body>
    <div id="example"></div>
    <script type="text/babel">
      let NotesList=React.createClass({
        render: function(){
          return (
            <ol>
            {
              React.Children.map(this.props.children, function(child){
                return <li>{child}</li>;
              })
            }
            </ol>
          )
        }
      });

      ReactDOM.render(
        <NotesList>
          <span>hello</span>
          <span>World</span>
        </NotesList>,
        document.body
      );
    </script>
  </body>
</html>
